﻿using System.Reflection;
using Ninject;
using Ninject.Extensions.Conventions;

namespace NinjectManager.NinjectInstallers
{
    public static class RepositoryInstaller
    {
        public static void Instal(IKernel kernel)
        {
            kernel.Bind(x => x.From(Assembly.Load("EYCmsAdmin.NHibernate")).
                SelectAllClasses().
                BindDefaultInterface().
                Configure(c => c.InSingletonScope().WithConstructorArgument("sessionName","EYA")));       
        }
    }
}